package com.genghis.ptas.comment.service;

import com.genghis.core.page.entity.Page;
import com.genghis.core.page.entity.PageParameter;
import com.genghis.ptas.comment.entity.Comment;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: tiangc
 * Date: 14-4-22
 * Time: 下午8:16
 * To change this template use File | Settings | File Templates.
 */
public interface CommentService {

   void addScormComment(Comment comment, int userId);

   Comment findCommentByScormIdAndUseId(int scormId,int userId);

   Comment findCommentById(int id);

   boolean findIsCommentById(int scormId,int userId);

   List<Comment> findCommentListByScormId(int scormId);

    Page<Comment> listScormComment(PageParameter pageParameter, Comment comment);

    void deleteCommentById(String ids[]);

    void editComment(Comment comment);

}
